package ar.com.personalTravellers.beans;

import com.angel.arquitectura.model.common.PersistentObject;

import javax.persistence.Column;
import javax.persistence.Entity;

@Entity
public class Address extends PersistentObject{

    private Neighborhood neighborhood;

    private Integer departament;

    private Integer number;

    @Column(nullable = false)
    private String zipCode;

    private String street;

    public Address() {
        super();
    }

    public Neighborhood getNeighborhood() {
        return neighborhood;
    }

    public void setNeighborhood(Neighborhood neighborhood) {
        this.neighborhood = neighborhood;
    }

    public Integer getDepartament() {
        return departament;
    }

    public void setDepartament(Integer departament) {
        this.departament = departament;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String getStreet() {
        return street;
    }

    public void setStreet(String street) {
        this.street = street;
    }

    public String getZipCode() {
        return zipCode;
    }

    public void setZipCode(String zipCode) {
        this.zipCode = zipCode;
    }
}